var express = require('express');
var router = express.Router();
let fs = require('fs');

/* GET users listing. */
router.get('/', function(req, res, next) {
  // res.writeHead(200,{'Content-Type':'text/html'})
  fs.readFile('./public/yuanyuan/index.html','utf-8',function(err,data){
    if(err){
      throw err ;
    }
    res.end(data);
  });
});
router.get('/brochure', function(req, res, next) {
  // res.writeHead(200,{'Content-Type':'text/html'})
  fs.readFile('./public/yuanyuan/brochure.html','utf-8',function(err,data){
    if(err){
      throw err ;
    }
    res.end(data);
  });
});
router.get('/banner', function(req, res, next) {
  // res.writeHead(200,{'Content-Type':'text/html'})
  fs.readFile('./public/yuanyuan/banner.html','utf-8',function(err,data){
    if(err){
      throw err ;
    }
    res.end(data);
  });
});
router.get('/packing', function(req, res, next) {
  // res.writeHead(200,{'Content-Type':'text/html'})
  fs.readFile('./public/yuanyuan/packing.html','utf-8',function(err,data){
    if(err){
      throw err ;
    }
    res.end(data);
  });
});
router.get('/product', function(req, res, next) {
  // res.writeHead(200,{'Content-Type':'text/html'})
  fs.readFile('./public/yuanyuan/product.html','utf-8',function(err,data){
    if(err){
      throw err ;
    }
    res.end(data);
  });
});

module.exports = router;
